//
//  MYFeedbackViewController.m
//  投融保
//
//  Created by 523 on 13-12-19.
//  Copyright (c) 2013年 木叶科技. All rights reserved.
//

#import "MYFeedbackViewController.h"

@interface MYFeedbackViewController ()

@end

@implementation MYFeedbackViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    SETBACKGROUND
    [self initView];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)initView
{
    Y=0;
    if (IOS_VERSION>=7) {
        Y=20;
    }
    
    //导航视图
    UIView *titleView=[[UIView alloc] initWithFrame:CGRectMake(0, Y, SCREEN_WIDTH, 105)];
    [titleView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"titile_bg"]]];
    [self.view addSubview:titleView];
    
    UILabel *lblTitle=[[UILabel alloc] initWithFrame:CGRectMake(250, 2, 268, 105)];
    [lblTitle setText:@"反馈"];
    [lblTitle setTextColor:[UIColor whiteColor]];
    [lblTitle setFont:[UIFont boldSystemFontOfSize:40]];
    lblTitle.textAlignment=NSTextAlignmentCenter;
    lblTitle.backgroundColor=[UIColor clearColor];
    [titleView addSubview:lblTitle];
    
    //反悔按钮
    UIButton *btnReturn=[UIButton new];
    [btnReturn setFrame:CGRectMake(0, 0, 105, 105)];
    [btnReturn setImage:[UIImage imageNamed:@"return_icon"] forState:UIControlStateNormal];
    [btnReturn addTarget:self action:@selector(btnReturnClick) forControlEvents:UIControlEventTouchUpInside];
    [titleView addSubview: btnReturn];
    //左边按钮
    UIButton *btnYes=[UIButton new];
    [btnYes setFrame:CGRectMake(653, 0, 105, 105)];
    [btnYes setImage:[UIImage imageNamed:@"feedback_yes_icon"] forState:UIControlStateNormal];
    [btnYes addTarget:self action:@selector(btnYesClick) forControlEvents:UIControlEventTouchUpInside];
    [titleView addSubview: btnYes];
    
    //反馈输入
    UITextView *textView=[[UITextView alloc] initWithFrame:CGRectMake(34, Y+145, 700, 280)];
//    [textView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"feedback_info_bg"]]];
    [textView.layer setBorderWidth:2.0];
    [textView.layer setBorderColor:[UIColor colorWithRed:215/255.0 green:215/255.0 blue:215/255.0 alpha:1.0].CGColor];
    [textView.layer setCornerRadius:5.0];
    textView.text=@"我是萨克好的发生了噶死了";
    textView.textColor=[UIColor darkGrayColor];
    textView.font=[UIFont systemFontOfSize:33];
    [self.view addSubview:textView];
    
    //确认按钮
    UIButton *btnSubmit=[[UIButton alloc] initWithFrame:CGRectMake(34, Y+500, 700, 105)];
    [btnSubmit setBackgroundImage:[UIImage imageNamed:@"login_bg"] forState:UIControlStateNormal];
    [btnSubmit setTitle:@"确定" forState:UIControlStateNormal];
    btnSubmit.titleLabel.font=[UIFont boldSystemFontOfSize:40];
    [self.view addSubview:btnSubmit];
    
    

}

//返回前页按钮方法
- (void)btnReturnClick
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

//
- (void)btnYesClick
{
    NSLog(@"用户点击了√");
}

#pragma mark-   -----------状态栏底色------
- (UIStatusBarStyle)preferredStatusBarStyle
{
    [self.view setBackgroundColor:[UIColor blackColor]];
    return UIStatusBarStyleLightContent;
}
- (BOOL)prefersStatusBarHidden
{
    return NO;
}
@end
